package com.example.javabasic.thread.classtwo.workthread.listner;

public class CustomThread extends Thread {
    private ThreadListener listener;
    public CustomThread(ThreadListener listener){
        this.listener = listener;
    }
    @Override
    public void run() {
        listener.execute();
        super.run();
    }
}
